module.exports = {
    entry: __dirname + "/server.ts",
    output: {
        libraryTarget: "commonjs",
        publicPath: __dirname,
        path: __dirname + "../../../server",
        filename: "server.js"
    },
    devtool: "source-map",
    resolve: {
        extensions: ["", ".ts"]
    },
    module: {
        loaders: [
            { test: /\.ts$/, loader: "ts-loader" }
        ],
        preLoaders: [
            { test: /\.js$/, loader: "source-map-loader" }
        ]
    },
    externals: [
        "express",
        "body-parser"
    ]
};